/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.unicon.autoservicio.bean;

/**
 *
 * @author JMENDOZA | 20140108 | Proy. 817
 * @author JMENDOZA | 20140210 | Proy. 817: Mi Programaciones
 */

import com.unicon.autoservicio.dao.PedidoDAO;
import com.unicon.sdc.ds.ws.PedidoBean; 
import java.util.Date;

 

public class PedidoCSViewBean extends PedidoBean{ 

    private Date orderDateDate;
    private Date startTimeDate;
    
    public PedidoCSViewBean(){
    }
    
    public PedidoCSViewBean(PedidoBean parent){
        
        this.orderDate      = parent.getOrderDate();
        this.startTime      = parent.getStartTime();
        this.orderCode      = parent.getOrderCode();
        this.descObr        = parent.getDescObr();
        this.delvAddr       = parent.getDelvAddr();
        this.projCode       = parent.getProjCode();
        this.tipoPedido     = parent.getTipoPedido();
        this.shortescr      = parent.getShortescr();
        this.orderQty       = parent.getOrderQty();
        this.delvQty        = parent.getDelvQty();
        this.removeRsnCode  = parent.getRemoveRsnCode();
        this.descrRsn       = parent.getDescrRsn();
        this.deEst          = parent.getDeEst();
        this.delvProg       = parent.getDelvProg();
        this.ctTkt          = parent.getCtTkt();
        this.et1With        = parent.getEt1With();
        this.et2With        = parent.getEt2With();
        this.et3With        = parent.getEt3With();
        this.et4With        = parent.getEt4With();
        this.et1Porc        = parent.getEt1Porc();
        this.et2Porc        = parent.getEt2Porc();
        this.et3Porc        = parent.getEt3Porc();
        this.et4Porc        = parent.getEt4Porc();
        this.et1PorcS       = parent.getEt1PorcS();
        this.et2PorcS       = parent.getEt2PorcS();
        this.et3PorcS       = parent.getEt3PorcS();
        this.et4PorcS       = parent.getEt4PorcS();
        this.deTiPed        = parent.getDeTiPed();
        this.url            = parent.getUrl();
        this.esOrdr         = parent.getEsOrdr();
        this.deEsOrdr         = parent.getDeEsOrdr();
        
    }

   /**
     * Get the value of startTimeDate
     *
     * @return the value of startTimeDate
     */
    public Date getStartTimeDate() {
        if (getStartTime() != null) {
            startTimeDate = getStartTime().toGregorianCalendar().getTime();
        }
        return startTimeDate;
    }

    /**
     * Set the value of startTimeDate
     *
     * @param startTimeDate new value of startTimeDate
     */
    public void setStartTimeDate(Date startTimeDate) {
        this.startTimeDate = startTimeDate;
    }


    /**
     * Get the value of orderDateDate
     *
     * @return the value of orderDateDate
     */
    public Date getOrderDateDate() {
        if (getOrderDate() != null) {
            orderDateDate = getOrderDate().toGregorianCalendar().getTime();
        }
        return orderDateDate;
    }

    /**
     * Set the value of orderDateDate
     *
     * @param orderDateDate new value of orderDateDate
     */
    public void setOrderDateDate(Date orderDateDate) {
        this.orderDateDate = orderDateDate;
    }


    

}
